<div class="container">
    <div class="conditions">
      <div class="total">共检索到${papers.totalItems}条记录</div>
      <div class="panel-group" aria-multiselectable="true">
        <div class="panel panel-default">
          <div class="panel-heading" role="tab">
            <a role="button" class="panel-title" data-toggle="collapse" href="#paperCollapseOne">时间<i class="pull-right fa fa-angle-down"></i></a>
          </div>
          <div id="paperCollapseOne" class="panel-collapse collapse in" role="tabpanel">
            <div class="panel-body">
              <ul class="list-unstyled">
                [#list yearStats! as yearStat]
                <li class="condition">[@b.a href="!papers?begin="+yearStat[0]+"&end="+yearStat[0]]${yearStat[0]}年<span>(${yearStat[1]})</span>[/@]</li>
                [/#list]
                <li>
                  <form class="form-inline" name="search_paper_by_year_form" action="${b.url('!papers')}" method="post">
                    <div class="form-group">
                      <input type="text" class="form-control year" name="begin" value="${Parameters['begin']!}">
                    </div>
                    <div class="form-group">
                      <span>-</span>
                    </div>
                    <div class="form-group">
                      <input type="text" class="form-control year" name="end" value="${Parameters['end']!}">
                    </div>
                    <button type="submit" class="btn btn-default" onclick="bg.form.submit(this.form)">确定</button>
                  </form>
                </li>
              </ul>
            </div>
          </div>
        </div>
        <div class="panel panel-default">
          <div class="panel-heading" role="tab">
            <a role="button" class="panel-title" data-toggle="collapse" href="#paperCollapseTwo">领域<i class="pull-right fa fa-angle-down"></i></a>
          </div>
          <div id="paperCollapseTwo" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingTwo">
            <div class="panel-body">
              <ul class="list-unstyled">
                [#list paperScopeStats! as paperScopeStat]
                <li>${paperScopeStat[0]}<span>(${paperScopeStat[1]})</span></li>
                [/#list]
              </ul>
            </div>
          </div>
        </div>
        <div class="panel panel-default">
          <div class="panel-heading" role="tab">
            <a role="button" class="panel-title" data-toggle="collapse" href="#paperCollapseThree">核心<i class="pull-right fa fa-angle-down"></i></a>
          </div>
          <div id="paperCollapseThree" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingThree">
            <div class="panel-body">
              <ul class="list-unstyled">
                <li>sci收录<span>(12)</span></li>
                <li>EI收录<span>(34)</span></li>
                <li>北大核心期刊<span>(23)</span></li>
              </ul>
            </div>
          </div>
        </div>
      </div>
    </div>
    
    <div class="main">
          <div class="container-fluid">
            <div class="pagebar row">
              [@b.form action="!papers" name="search_in_result_paperform"]
              <div class="col-xs-2 sort-control">
                <select class="form-control">
                  <option>默认排序</option>
                 
                </select>
              </div>
              <div class="col-xs-2 field-filter">
                <input type="text" class="form-control" placeholder="题目" name="paper.title" value="${Parameters['paper.title']!}">
              </div>
              <div class="col-xs-2 field-filter">
                  <input type="text" class="form-control" placeholder="作者" name="paper.author" value="${Parameters['paper.author']!}">
              </div>
              <div class="col-xs-2 field-filter">
                <input type="text" class="form-control" placeholder="关键字" name="paper.keyword" value="${Parameters['paper.keyword']!}">
              </div>
              <div class="col-xs-2 field-filter">
                <input type="text" class="form-control" placeholder="期刊名" name="paper.source" value="${Parameters['paper.source']!}">
              </div>
              <div class="pull-right">
                <button type="submit" onclick ="bg.form.submit(this.form)" class="btn btn-default"><i class="fa fa-search"></i> 在结果中搜索</button>
              </div>
              [/@]
            </div>
          </div>
          <ol class="list-unstyled">
            [#list papers as paper] 
            <li class="row">
              <h5>
                <span class="index-no"></span>
                <span class="label label-primary">阅读全文</span>
                [@b.a href="!paperInfo?id="+paper.id class="title"]${paper.title}[/@]
                <span>(被引用 1 次)</span>
              </h5>
              <div class="col-xs-10 col-md-11 info-content">
                <div class="author">
                   <a href="#">${paper.author!}</a> / <a href="#">${paper.department!}</a> / <a href="#">${paper.year !}</a> / 来源：<a href="#">${paper.source !}</a>
                </div>
                <div class="summary">
                 ${paper.summary !}
                </div>
              </div>
              <div class="pull-right action-bar">
                <ul class="list-unstyled">
                  <li><a href="#" class="text-info"><i class="fa fa-download"></i>下载</a></li>
                  <li><a href="#" class="text-info"><i class="fa fa-file-text-o"></i>阅读</a></li>
                 
                </ul>
              </div>
          
              
              <div class="tags">
                <a href="#" class="btn btn-default"> ${paper.keyword !}</a>
               
              </div>
            </li>
            [/#list]
          </ol>
          <div class="pagination-bar row">
            [#assign currentPageIndex=papers.pageIndex/]
            [#assign totalPageIndex=papers.totalPages/]
            <ul class="pagination">
              <li>[@b.a href="!papers?pageIndex=1"]首页[/@]</li>
              [#if currentPageIndex>1]
              <li>[@b.a href="!papers?pageIndex=" +(currentPageIndex-1)]上一页[/@]</li>
              [/#if]
              [#list currentPageIndex-3 .. currentPageIndex-1 as i]
              [#if i>0]
              <li>[@b.a href="!papers?pageIndex=" +(i)]${i}[/@]</li>
              [#else] [#break/]
              [/#if]
              [/#list]
              <li class="active"><a href="#">${currentPageIndex}</a></li>
              [#list currentPageIndex+1 .. currentPageIndex+3 as i]
              [#if i<=totalPageIndex]
              <li>[@b.a href="!papers?pageIndex=" +(i)]${i}[/@]</li>
              [#else] [#break/]
              [/#if]
              [/#list]
              [#if currentPageIndex<totalPageIndex]
              <li>[@b.a href="!papers?pageIndex=" +(currentPageIndex+1)]下一页[/@]</li>
              [/#if]
              <li>[@b.a href="!papers?pageIndex="+totalPageIndex]尾页[/@]</li>
            </ul>
          </div>
         
      </div>
    </div>
  </div>

</div> <!--end container-->
